package com.jian.exceldaoru.controller;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

/**
 * Created by lijian on 2020/10/19 10:33
 */
@Getter
@Setter
@ToString
public class ExcelBean {
    private Boolean isValid=true;// 判断导入的表格是否合法
    private String errMsg;//表格不合法的原因

    private Integer detailTitleLineNum;// 明细所占的行数
    private Integer startRow;// 明细开始行
    private Integer endRow;// 明细结束行
    private String dateFormat;// 日期类型

    private String statisticalTime;//统计时间
    private Integer statisticalTimeRow;//统计时间所在的行
    private String statisticalType;//日期类型
    private Integer statisticalTypeRow;
    private String lineName;//线路名称
    private Integer lineNameRow;
    private String tabulationTime;//制表时间
    private Integer tabulationTimeRow;
    private String tabulator;//制表人
    private Integer tabulatorRow;
    private String tabulatingUnit;//制表单位
    private Integer tabulatingUnitRow;
//    private List<String> dataList;//明细数据
    private List<List<String>> dataList;//明细数据
    public static ExcelBean createFail(ExcelBean excelBean,String errMsg){
        excelBean.setIsValid(false);
        excelBean.setErrMsg(errMsg);
        return excelBean;
    }
}
